package com.shujia.mvc1;

import java.io.InputStream;
import java.util.Scanner;

public class Test2Register {
    public static void main(String[] args) {

        //1、输入用户名和密码

        //控制台输入流
        InputStream in = System.in;

        //包装流
        Scanner scanner = new Scanner(in);

        System.out.println("请输入用户名:");
        String username = scanner.next();

        System.out.println("请输入密码:");
        String password = scanner.next();

        System.out.println("请确认密码:");
        String password1 = scanner.next();

        System.out.println(username + "\t" + password + "\t" + password1);

        //调用控制层的登录方法
        Demo1Controller demo1Controller = new Demo1Controller();

        String register = demo1Controller.register(username, password, password1);

        System.out.println(register);
    }
}
